Component({
  properties: {
    scenicName: {
      type: String,
      value: ""
    },
    scenicDes: {
      type: String,
      value: ""
    },
    imageSrc: {
      type: String,
      value: ""
    },
    scenicPrice: {
      type: Number,
      value: 0
    },
    scenicRePrice: {
      type: Number,
      value: 0
    }
  },
  data: {
  },
  methods: {
    jumpHotelDetail(e) {
      const pageThis = this
      wx.navigateTo({
        url: `/pages/ticketDetail/index`,
        success(res) {
          // 通过eventChannel向被打开页面传送数据
          res.eventChannel.emit('sendOutData', { value: pageThis.properties, type: 'scenic' })
        }
      });
    }
  },
})
